import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
type Result = {
  current_page: number;
  result?: any;
  per_page?: number;
  total?: number;
  data?: any;
};
/** 异常日志列表 */
export const getLogsOperaList = (params?: object) => {
  return http.request<Result>("get","/dashboard/taskErrorLog/list", {
    params
  });
};
type ResultDelete = {
  code: number;
  msg: string;
};
type Show = {
  code: number;
  msg: string;
  result?: any;
};
/** 异常日志删除 */
export const delTaskExceptionLogApi = (params?: object) => {
  return http.request<ResultDelete>(
    "delete",
   "/dashboard/taskErrorLog/delete",
    {
      params
    }
  );
};
/** 异常日志详情 */
export const getTaskExceptionLogShowApi = (params?: object) => {
  return http.request<Show>("get", "/dashboard/taskErrorLog/show", {
    params
  });
};
/** 小车日志列表 */
export const getTaskCarLogList = (params?: object) => {
  return http.request<Result>("get", "/dashboard/taskLog/list", {
    params
  });
};
/** 小车日志详情 */
export const getTaskCarLogShowApi = (params?: object) => {
  return http.request<Show>("get", "/dashboard/taskLog/show", {
    params
  });
};
/** 小车日志删除 */
export const delTaskCarLogApi = (params?: object) => {
  return http.request<ResultDelete>(
    "delete",
    "/dashboard/taskLog/delete",
    {
      params
    }
  );
};